How to create new dictionaries from nested dictionary